package com.ruoyi.system.service;

import java.util.List;

import com.ruoyi.system.domain.SysCompanies;
import com.ruoyi.system.domain.SysDeviceEarlyWarning;

/**
 * 设备预警单Service接口
 * 
 * @author ruoyi
 * @date 2022-07-21
 */
public interface ISysDeviceEarlyWarningService 
{
    /**
     * 查询设备预警单
     * 
     * @param dewId 设备预警单主键
     * @return 设备预警单
     */
    public SysDeviceEarlyWarning selectSysDeviceEarlyWarningByDewId(Long dewId);

    /**
     * 查询设备预警单列表
     * 
     * @param sysDeviceEarlyWarning 设备预警单
     * @return 设备预警单集合
     */
    public List<SysDeviceEarlyWarning> selectSysDeviceEarlyWarningList(SysDeviceEarlyWarning sysDeviceEarlyWarning);

    /**
     * 新增设备预警单
     * 
     * @param sysDeviceEarlyWarning 设备预警单
     * @return 结果
     */
    public int insertSysDeviceEarlyWarning(SysDeviceEarlyWarning sysDeviceEarlyWarning);

    /**
     * 修改设备预警单
     * 
     * @param sysDeviceEarlyWarning 设备预警单
     * @return 结果
     */
    public int updateSysDeviceEarlyWarning(SysDeviceEarlyWarning sysDeviceEarlyWarning);

    /**
     * 批量删除设备预警单
     * 
     * @param dewIds 需要删除的设备预警单主键集合
     * @return 结果
     */
    public int deleteSysDeviceEarlyWarningByDewIds(String dewIds);

    /**
     * 删除设备预警单信息
     * 
     * @param dewId 设备预警单主键
     * @return 结果
     */
    public int deleteSysDeviceEarlyWarningByDewId(Long dewId);

    /**
     * 导入预警单信息
     *
     * @param list 预警单信息列表
     * @param isUpdateSupport 是否更新支持，如果已存在，则进行更新数据
     * @param operName 操作用户
     * @return 结果
     */
    public String importDeviceEarlyWarning(List<SysDeviceEarlyWarning> list, Boolean isUpdateSupport, String operName);
}
